package com.dragee.modules.work.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 随队人员
 *
 * @author tys on 2023/4/24
 */
@Data
@NoArgsConstructor
@ColumnWidth(20)
public class TeamPersonExport {
    public TeamPersonExport(TeamPerson t, String teamName) {
        this.name = t.getName();
        this.tel = t.getTel();
        this.idCard = t.getIdCard();
        this.sex = t.getSex();
        this.age = t.getAge();
        this.teamName = teamName;
    }
    @ExcelProperty(value = "参赛单位")
    private String teamName;
    @ExcelProperty(value = "姓名")
    private String name;
    @ExcelProperty(value = "联系方式")
    private String tel;
    @ExcelProperty(value = "身份证号")
    private String idCard;
    @ExcelProperty(value = "性别")
    private String sex;
    @ExcelProperty(value = "年龄")
    private String age;
}
